class OrderListModel {
  int status;
  Data data;
  String msg;
  String error;

  OrderListModel({this.status, this.data, this.msg, this.error});

  OrderListModel.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    msg = json['msg'];
    error = json['error'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['msg'] = this.msg;
    data['error'] = this.error;
    return data;
  }
}

class Data {
  List<AccountList> accountList;
  String currentPage;
  int pageCount;
  int pageSize;
  int totalCount;

  Data(
      {this.accountList,
      this.currentPage,
      this.pageCount,
      this.pageSize,
      this.totalCount});

  Data.fromJson(Map<String, dynamic> json) {
    if (json['accountList'] != null) {
      accountList = new List<AccountList>();
      json['accountList'].forEach((v) {
        accountList.add(new AccountList.fromJson(v));
      });
    }
    currentPage = json['currentPage'];
    pageCount = json['pageCount'];
    pageSize = json['pageSize'];
    totalCount = json['totalCount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.accountList != null) {
      data['accountList'] = this.accountList.map((v) => v.toJson()).toList();
    }
    data['currentPage'] = this.currentPage;
    data['pageCount'] = this.pageCount;
    data['pageSize'] = this.pageSize;
    data['totalCount'] = this.totalCount;
    return data;
  }
}

class AccountList {
  int iD;
  String createdAt;
  String updatedAt;
  Null deletedAt;
  int storeId;
  int managerId;
  int platUserId;
  int orderId;
  String innerOrderId;
  int centPayPrice;
  int centPayScorePrice;
  int centMoneyPrice;
  int centScorePrice;
  int moneyScoreRatio;
  String mainType;
  String type;
  String comment;

  AccountList(
      {this.iD,
      this.createdAt,
      this.updatedAt,
      this.deletedAt,
      this.storeId,
      this.managerId,
      this.platUserId,
      this.orderId,
      this.innerOrderId,
      this.centPayPrice,
      this.centPayScorePrice,
      this.centMoneyPrice,
      this.centScorePrice,
      this.moneyScoreRatio,
      this.mainType,
      this.type,
      this.comment});

  AccountList.fromJson(Map<String, dynamic> json) {
    iD = json['ID'];
    createdAt = json['CreatedAt'];
    updatedAt = json['UpdatedAt'];
    deletedAt = json['DeletedAt'];
    storeId = json['StoreId'];
    managerId = json['ManagerId'];
    platUserId = json['PlatUserId'];
    orderId = json['OrderId'];
    innerOrderId = json['InnerOrderId'];
    centPayPrice = json['CentPayPrice'];
    centPayScorePrice = json['CentPayScorePrice'];
    centMoneyPrice = json['CentMoneyPrice'];
    centScorePrice = json['CentScorePrice'];
    moneyScoreRatio = json['MoneyScoreRatio'];
    mainType = json['MainType'];
    type = json['Type'];
    comment = json['Comment'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ID'] = this.iD;
    data['CreatedAt'] = this.createdAt;
    data['UpdatedAt'] = this.updatedAt;
    data['DeletedAt'] = this.deletedAt;
    data['StoreId'] = this.storeId;
    data['ManagerId'] = this.managerId;
    data['PlatUserId'] = this.platUserId;
    data['OrderId'] = this.orderId;
    data['InnerOrderId'] = this.innerOrderId;
    data['CentPayPrice'] = this.centPayPrice;
    data['CentPayScorePrice'] = this.centPayScorePrice;
    data['CentMoneyPrice'] = this.centMoneyPrice;
    data['CentScorePrice'] = this.centScorePrice;
    data['MoneyScoreRatio'] = this.moneyScoreRatio;
    data['MainType'] = this.mainType;
    data['Type'] = this.type;
    data['Comment'] = this.comment;
    return data;
  }
}
